package akbderby.service;

import java.util.List;

public abstract class ServiceBase {

    protected boolean isNull(Object o) {
        if (o == null)
            return true;
        if (o instanceof String && "".equals(o))
            return true;
        return false;
    }

    protected boolean isEmpty(List l) {
        if (isNull(l) || l.isEmpty())
            return true;
        return false;
    }

}
